$ = jQuery

$.fn.twitter = (options) ->

    settings = $.extend {}, options

    @each ->

        link = $ @
        endpoint = encodeURI "http://api.twitter.com/1/users/show.json?screen_name=#{(link.attr 'href').split('/').pop()}"

        $.getJSON settings.url, url: endpoint, (response) ->
            link.attr 'title', "#{response.followers_count} followers"